/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 审批控制Entity
 * @author ZC
 * @version 2017-06-02
 */
public class SysMenuSwitch extends DataEntity<SysMenuSwitch> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 权限名称
	private String enName;
	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	private String permission;		// 权限标识
	
	public SysMenuSwitch() {
		super();
	}

	public SysMenuSwitch(String id){
		super(id);
	}

	@Length(min=0, max=255, message="权限名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=200, message="权限标识长度必须介于 0 和 200 之间")
	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}
	
}